<template>
  <div class="item-content">
    <div class="items-box" :style="isHideLine && 'border: none'">
      <img
        src="../../../assets/images/student/upTop.png"
        class="ranking-icon1"
        alt=""
      />
      <div class="items-infos">
        <span class="title">{{ item.title }}</span>
        <div class="time-type">
          <span style="margin-right: 20px">{{ item.time }}</span>
          <span>{{ item.type }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  // 组件名称
  name: "demo",
  props: ["item", "isHideLine"],
  // 局部注册的组件
  components: {},
  // 组件状态值
  data() {
    return {};
  },
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style lang="less" scoped>
.item-content {
  width: 100%;
  padding: 0 15px 0 15px;
  .items-box {
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #ccc;

    .ranking-icon1 {
      width: 20px;
      height: 20px;
      margin-right: 5px;
    }

    .items-infos {
      display: flex;
      flex-direction: column;
      padding: 5px 0;

      width: 100%;

      .title {
        margin-bottom: 10px;
      }
      .time-type {
        font-size: 12px;
        color: #ccc;
      }
    }
  }
}
</style>
